i = 1
while i < 10:
    for j in range(1, 10):
        if j <= i:
            print(j, '*', i, '=', j * i, end=' ')
        j += 1
    print()
    i += 1
